package cn.com.dhcc.turbo.service.registry;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.dhcc.app.core.exception.DaoException;
import cn.com.dhcc.app.core.exception.ServiceException;
import cn.com.dhcc.turbo.dao.registry.MonitorRuleDao;
import cn.com.dhcc.turbo.entity.registry.MonitorRule;

/**
 * 規則Service
 * 
 * @日期：2014-6-12 下午4:38:13
 * @作者：张洪涛
 * @版权所有：东华软件
 * @版本：1.0
 */
@Service
public class MonitorRuleService {
	@Autowired
	private MonitorRuleDao ruleDao;

	public List<MonitorRule> list(String quotaId) throws ServiceException {
		try {
			return ruleDao.list(quotaId);
		} catch (DaoException e) {
			throw new ServiceException("获取規則失败", e);
		}
	}

}
